private ["_agent"];
_agent = _this select 0;

_agent setVariable ["Parameters",[getPos player nearestObject "FoldChair"] ];
_agent setVariable ["Command","Goto"];